package com.stox.util;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;


public class ApplicationContextUtil {

	private static ApplicationContext applicationContext;
	
	public static ApplicationContext loadApplicationContext(){
		if(null == applicationContext)
			applicationContext = new AnnotationConfigApplicationContext("com.stox");
		return applicationContext;
	}
	
	public static ApplicationContext getApplicationContext(){
		return applicationContext;
	}
	
	
}
